using System;

namespace Entities
{
	public class ClearAction : MobAction
	{
		public Mob other;
			
		public ClearAction (Mob other)
		{
			type = TypeAction.clear;
			this.other = other;
		}
		
		public override MobAction nextAction(Mob mob, Fighter target){
			if (mob.distance(other) < maxclearrange){
				return new ClearAction(other);
			}
			
			return new IdleAction();
		}
	}
}

